//package com.java1234.rocketmq;
//
//import org.apache.rocketmq.spring.annotation.ConsumeMode;
//import org.apache.rocketmq.spring.annotation.MessageModel;
//import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
//import org.apache.rocketmq.spring.core.RocketMQListener;
//import org.springframework.stereotype.Component;
//
///**
// * 消息消费者
//
// consumeMode = ConsumeMode.ORDERLY 单线程顺序接收消息；
//
// */
//@RocketMQMessageListener(topic = "java1234-rocketmq-orderly",consumerGroup ="${rocketmq.consumer.group}",consumeMode = ConsumeMode.ORDERLY)
//@Component("orderlyConsumerService")
//public class OrderlyConsumerService implements RocketMQListener<String> {
//
//    @Override
//    public void onMessage(String message) {
//        System.out.println("收到消息内容："+message);
//    }
//}
